import request from '@/utils/request'

// 查询用户地址簿列表
export function listLeUserAddress(query) {
  return request({
    url: '/lease/leUserAddress/list',
    method: 'get',
    params: query
  })
}

// 查询用户地址簿详细
export function getLeUserAddress(userAddrId) {
  return request({
    url: '/lease/leUserAddress/' + userAddrId,
    method: 'get'
  })
}

// 新增用户地址簿
export function addLeUserAddress(data) {
  return request({
    url: '/lease/leUserAddress',
    method: 'post',
    data: data
  })
}

// 修改用户地址簿
export function updateLeUserAddress(data) {
  return request({
    url: '/lease/leUserAddress',
    method: 'put',
    data: data
  })
}

// 删除用户地址簿
export function delLeUserAddress(userAddrId) {
  return request({
    url: '/lease/leUserAddress/' + userAddrId,
    method: 'delete'
  })
}
